/**
    分销员 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewAffiliateUserInfo:{
                index:0,
                flowComponent:'viewAffiliateUserInfo',
                level:'',
state:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            vc.component._loadAffiliateUserInfoData();
        },
        _initEvent:function(){
            vc.on('viewAffiliateUserInfo','chooseAffiliateUser',function(_app){
                vc.copyObject(_app, vc.component.viewAffiliateUserInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,vc.component.viewAffiliateUserInfo);
            });

            vc.on('viewAffiliateUserInfo', 'onIndex', function(_index){
                vc.component.viewAffiliateUserInfo.index = _index;
            });

        },
        methods:{

            _openSelectAffiliateUserInfoModel(){
                vc.emit('chooseAffiliateUser','openChooseAffiliateUserModel',{});
            },
            _openAddAffiliateUserInfoModel(){
                vc.emit('addAffiliateUser','openAddAffiliateUserModal',{});
            },
            _loadAffiliateUserInfoData:function(){

            }
        }
    });

})(window.vc);
